package cn.agiledata.bank.barcodepayment.dao;

import java.util.List;

import cn.agiledata.bank.hibernateBean.BarCodePayType;
import com.vnv.infrastructure.logic.IPBHibernate3BaseMgr;

public class BarCodePayTypeDaoImpl extends IPBHibernate3BaseMgr implements
		BarCodePayTypeDao {

	public List getBarCodePayTypes() {
		String hql = "from BarCodePayType";
		return getHibernateService().find(hql);
	}

	public BarCodePayType getBarCodePayTypeById(Long id) {
		String hql = "from BarCodePayType t where t.id = ?";
		return (BarCodePayType) getHibernateService().find(hql,id).get(0);
	}

    public List getBarCodePayType() {
        String hql = "from BarCodePayType";
        List resultList = getHibernateService().find(hql);
        return resultList;
    }

}
